/* Canvas Page Styles */
.canvas-content {
  padding: 20px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.canvas-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #e5eaf3;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #3a3a3a;
  border-color: #667eea;
}

.btn-icon {
  font-size: 16px;
}

.canvas-workspace {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 20px;
  flex: 1;
  min-height: 0;
  margin-top: 20px;
}

.canvas-sidebar,
.canvas-properties {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  overflow-y: auto;
}

.canvas-main {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.canvas-grid {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: 
    linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.canvas-element {
  position: absolute;
  border: 2px solid #667eea;
  border-radius: 4px;
  cursor: move;
  transition: all 0.2s ease;
}

.canvas-element:hover {
  border-color: #764ba2;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.tool-panel,
.layers-panel,
.properties-panel {
  margin-bottom: 20px;
}

.tool-panel h3,
.layers-panel h3,
.properties-panel h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #9aa5b1;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-item:hover {
  background: #3a3a3a;
  color: #e5eaf3;
}

.tool-item.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: #ffffff;
  border-color: transparent;
}

.tool-icon {
  font-size: 16px;
}

.tool-label {
  font-size: 14px;
}

.layers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2a2a2a;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
}

.layer-name {
  font-size: 14px;
  color: #e5eaf3;
}

.layer-controls {
  display: flex;
  gap: 5px;
}

.layer-btn {
  background: transparent;
  border: none;
  color: #9aa5b1;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.layer-btn:hover {
  background: #3a3a3a;
  color: #e5eaf3;
}

.layer-btn.active {
  color: #667eea;
}

.property-group {
  margin-bottom: 15px;
}

.property-group label {
  display: block;
  font-size: 12px;
  color: #9aa5b1;
  margin-bottom: 5px;
}

.property-inputs {
  display: flex;
  gap: 5px;
}

.property-inputs input,
.property-group input[type="color"] {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #e5eaf3;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  width: 100%;
}

.property-inputs input {
  flex: 1;
}

.property-group input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 2px;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .canvas-workspace {
    grid-template-columns: 200px 1fr 200px;
    gap: 15px;
  }
  
  .canvas-sidebar,
  .canvas-properties {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .canvas-content {
    padding: 15px;
  }
  
  .canvas-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 15px;
  }
  
  .canvas-sidebar {
    order: 2;
  }
  
  .canvas-main {
    order: 1;
  }
  
  .canvas-properties {
    order: 3;
  }
  
  .canvas-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .canvas-header h1 {
    font-size: 24px;
  }
  
  .tool-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .tool-item {
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    min-width: 60px;
  }
  
  .tool-label {
    font-size: 11px;
  }
}
